<!DOCTYPE html>
<!-- saved from url=(0049)http://www.patest.cn/contests/pat-b-practise/1038 -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <title>1038. 统计同成绩学生(20) | Programming Ability Test</title>
    <meta content="authenticity_token" name="csrf-param">
<meta content="+GKCKj4xUirOuNu9aUNZxoUmSKeNFrsidahVpDOZkSA=" name="csrf-token">
    <link href="./1038. 统计同成绩学生(20)   Programming Ability Test_files/application-f75b4427de2ad51cdb4f1abe37abcb68.css" media="screen" rel="stylesheet" type="text/css">
    <!--[if lt IE 8]><link href="/s/blueprint/ie-95046ca80744645e3475cae5890744b7.css" media="screen" rel="stylesheet" type="text/css" /><![endif]-->
    <!--[if lt IE 7]><link href="/s/custom_ie6-01f58d47daa14cae5a4d256ed3368756.css" media="screen" rel="stylesheet" type="text/css" /><![endif]-->
    <script src="./1038. 统计同成绩学生(20)   Programming Ability Test_files/application-929ef7194c12152f6707bc1d9a3efde7.js" type="text/javascript"></script>
    <link rel="icon" href="http://www.patest.cn/favicon.ico">
    <link rel="shortcut icon" href="http://www.patest.cn/favicon.ico">
    <!-- link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css' -->
  <script></script><script id="hp_same_"></script><script id="hp_done_"></script></head>
  <body>
    <div class="container">
      <div id="pageHeader">
  <div id="logo" class="lfloat">
    <a href="http://www.patest.cn/"><img alt="Logo" src="./1038. 统计同成绩学生(20)   Programming Ability Test_files/logo.png"></a>
  </div>
  <div id="headerInfo" class="rfloat">
      <span id="username" class="">
        welong
      </span>
        <a href="http://www.patest.cn/users/edit">[编辑资料]</a>
        <a href="http://www.patest.cn/users/sign_out" data-method="delete" rel="nofollow">[登出]</a>
  </div>
  <hr> 
</div>


      <div id="navibar" class="span-3">
  <ul>
    <li><a href="http://www.patest.cn/">主页</a></li>

    <li><a href="http://www.patest.cn/contests">题目集</a></li>

      <div id="psnavi">
        <ul>
          <li><a href="http://www.patest.cn/contests/pat-b-practise/information">基本信息</a></li>
          <li><a href="http://www.patest.cn/contests/pat-b-practise">题目列表</a></li>
            <li><a href="http://www.patest.cn/contests/pat-b-practise/submissions">提交列表</a></li>
            <li><a href="http://www.patest.cn/contests/pat-b-practise/ranklist">排名</a></li>
        </ul>
      </div>


    <li><a href="http://www.patest.cn/help">帮助</a></li>
  </ul>
</div>



      <div id="body" class="span-22 last">


            <h1>1038. 统计同成绩学生(20)</h1>
        <div id="problemInfo" class="rfloat">
  <div class="limit">
  <div class="key">
    时间限制
  </div>
  <div class="value">
    250 ms<br>
  </div>
</div>
<div class="limit">
  <div class="key">
    内存限制
  </div>
  <div class="value">
    65536 kB<br>
  </div>
</div>
<div class="limit">
  <div class="key">
    代码长度限制
  </div>
  <div class="value">
    8000 B<br>
  </div>
</div>



  <div class="checker">
    <div class="key">
      判题程序
    </div>
    <div class="value">
      <span title="纯文本对比">Standard</span>
    </div>
  </div>

    <div class="key">
      作者
    </div>
    <div class="value">
      CHEN, Yue<br>
    </div>
</div>


<div id="problemContent">
  <p>
本题要求读入N名学生的成绩，将获得某一给定分数的学生人数输出。</p>
	
<p><b>
输入格式：
</b></p>

<p>
输入在第1行给出不超过10<sup>5</sup>的正整数N，即学生总人数。随后1行给出N名学生的百分制整数成绩，中间以空格分隔。最后1行给出要查询的分数个数K（不超过N的正整数），随后是K个分数，中间以空格分隔。
</p>

<p><b>
输出格式：
</b></p>

<p>
在一行中按查询顺序给出得分等于指定分数的学生人数，中间以空格分隔，但行末不得有多余空格。
</p>

<b>输入样例：</b><pre>10
60 75 90 55 75 99 82 90 75 50
3 75 90 88
</pre>

<b>输出样例：</b><pre>3 2 0
</pre>

</div>

<hr>

  <script src="./1038. 统计同成绩学生(20)   Programming Ability Test_files/codemirror-3d770162a89c88d3c31ccfa93d22deed.js" type="text/javascript"></script>


<a href="http://www.patest.cn/contests/pat-b-practise/1038#" id="submission_link" onclick="show_submission(); return false;">提交代码</a>

<div id="submission" style="display: none;">
<form accept-charset="UTF-8" action="http://www.patest.cn/contests/32/1038/submit" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="✓"><input name="authenticity_token" type="hidden" value="+GKCKj4xUirOuNu9aUNZxoUmSKeNFrsidahVpDOZkSA="></div>
  <div class="field">
    <label for="compiler_id">编译器</label><br>
    <select id="compiler_id" name="compiler_id"><option value="100">AWK (awk 4.0.1)</option>
<option value="3" selected="selected">C (gcc 4.7.2)</option>
<option value="12">C# (mcs 2.10.8.1)</option>
<option value="2">C++ (g++ 4.7.2)</option>
<option value="14">Go (gccgo 4.7.2)</option>
<option value="101">Go (go 1.3)</option>
<option value="9">Haskell (ghc 7.4.1)</option>
<option value="10">Java (javac 1.6.0)</option>
<option value="24">Java (gcj 4.7)</option>
<option value="21">Javascript (node 0.10.33)</option>
<option value="16">Lisp (clisp 2.49)</option>
<option value="7">Lua (lua 5.2.1)</option>
<option value="102">OCaml (ocamlc 3.12.1)</option>
<option value="11">Pascal (fpc 2.6.0)</option>
<option value="19">Perl (perl 5.14.2)</option>
<option value="20">PHP (php 5.4.34)</option>
<option value="23">Plaintext (cat 1.0)</option>
<option value="4">Python (python3 3.2.3)</option>
<option value="5">Python (python2 2.7.3)</option>
<option value="6">Ruby (ruby 1.9.3)</option>
<option value="103">Scheme (racket 5.2.1)</option>
<option value="8">Shell (bash 4.2.37)</option>
<option value="15">Vala (valac 0.16.1)</option>
<option value="13">VisualBasic (vbnc 0.0.0.5943)</option></select>
  </div>
  <div class="field">
    <div class="rfloat">
        <input checked="checked" id="advanced_editor" name="advanced_editor" onchange="toggle_editor()" onclick="toggle_editor()" type="checkbox" value="1">
        使用高级编辑器
    </div>
    <label for="code">代码</label><br>
    <textarea id="code" name="code" style="display: none;"></textarea><div class="CodeMirror"><div style="overflow: hidden; position: relative; width: 1px; height: 0px; top: 0px; left: 0px;"><textarea style="position: absolute; width: 2px;" wrap="off" autocorrect="off" autocapitalize="off"></textarea></div><div class="CodeMirror-scroll cm-s-default"><div style="position: relative; height: 28px;"><div style="position: absolute; height: 0; width: 0; overflow: hidden;"><pre><span></span></pre></div><div style="position: relative; top: 0px;"><div class="CodeMirror-gutter" style="height: 250px;"><div class="CodeMirror-gutter-text"><pre>1</pre></div></div><div class="CodeMirror-lines"><div style="position: relative; margin-left: 25px;"><pre class="CodeMirror-cursor" style="top: 0px; left: 0px;">&nbsp;</pre><div><pre> </pre></div></div></div></div></div></div></div>
  </div>
  <div class="actions">
    <input name="commit" type="submit" value="提交代码">
  </div>
</form></div>

<script type="text/javascript">
//<![CDATA[
  function show_submission() {
    $('#submission').show();
    $('#submission_link').hide();
  };
  var editor;
  function toggle_editor() {
    var cm=$('.CodeMirror'), c=$('#code');
    if($('#advanced_editor').prop('checked')) {
      cm.show();
      editor.setValue(c.val());
      c.hide();
    } else {
      c.val(editor.getValue()).show();
      cm.hide();
    };
    return true;
  }
  function set_mode() {
    var compiler=$('#compiler_id option:selected').text();
    var modes=[ 
    'Javascript', 'Haskell', 'Lua', 'Pascal', 'Python', 'Ruby', 'Scheme', 'Smalltalk', 'Clojure',
    ['PHP', 'text/x-php'],
    ['C ', 'text/x-csrc'],
    ['C++ ', 'text/x-c++src'],
    ['Java ', 'text/x-java'],
    ['C#', 'text/x-csharp'],
    ['', 'text/plain'] ];
    for(var i=0;i!=modes.length;++i){
      var n=modes[i], m=modes[i];
      if($.isArray(n)) { m=n[1]; n=n[0]; }
      if(compiler.indexOf(n)>=0){editor.setOption('mode',m.toLowerCase());break;}
    }
  };
  $(document).ready(function() {
    editor = CodeMirror.fromTextArea(document.getElementById("code"), {
      lineNumbers: true,
    }); 
    $('#code').blur(function(){editor.setValue($('#code').val());});
    $('#compiler_id').change(set_mode);
    set_mode();
    toggle_editor();
  $('#submission').hide();
  });

//]]>
</script>







      </div>

      <div id="pageFooter" class="center">
  <hr class="nomarginbottom">
  <div id="footerContainer">
    <div class="center">
      版权所有 (C) 2011-2015 浙江大学计算机科学与技术学院
    </div>
  </div>
</div>


    </div>

  


<!--  -->

<div style="display:none"><script src="./1038. 统计同成绩学生(20)   Programming Ability Test_files/17642404.js"></script></div></body></html>